//
//  UIMacro.swift
//  Swift-WB
//
//  Created by lxy on 2017/6/12.
//  Copyright © 2017年 lixiya. All rights reserved.
//

import Foundation
import UIKit

// MARK: - 系统版本
let kSystemVersion = Float(UIDevice.current.systemVersion);
let kIsIOS7OrLater = Int(kSystemVersion!) >= 7 ? true : false;
let kIsIOS8OrLater = Int(kSystemVersion!) >= 8 ? true : false;
let kIsIOS9OrLater = Int(kSystemVersion!) >= 9 ? true : false;


// MARK:- 屏幕宽高、tabbar、导航条、状态栏高度
let kScreenBounds = UIScreen.main.bounds;
let kScreenWidth = UIScreen.main.bounds.size.width
let kScreenHeight = UIScreen.main.bounds.size.height
let KTabBarHeight = 49
let KNavBarHeight = 64
let KStatusBarHeight = 20


// MARK:- 颜色
/*
func RGB (r: CGFloat, g: CGFloat, b: CGFloat) -> UIColor {
    return UIColor (red: r/255.0, green: g/255.0, blue: b/255.0, alpha: 1.0)
}

func RGBA (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat) -> UIColor {
    return UIColor (red: r/255.0, green: g/255.0, blue: b/255.0, alpha: a)
}
 */

let RGB: ((CGFloat, CGFloat, CGFloat) -> UIColor) = { (r, g, b) in
    return UIColor (red: r/255.0, green: g/255.0, blue: b/255.0, alpha: 1.0)
}

let RGBA: ((CGFloat, CGFloat, CGFloat, CGFloat) -> UIColor) = {(r, g, b, a) in
    return UIColor (red: r/255.0, green: g/255.0, blue: b/255.0, alpha: a)
}

// 分割线颜色
let kColor_line = RGB(238, 238, 238)

// 背景颜色
let kColor_bg = RGB(245, 245, 245)

// 纯黑色(用于重要文字信息，如导航栏文字，内页标题文字)
let kColor_black = RGB(51, 51, 51)

// 主标题黑色(用于次级文字，如列表页的标签、菜单栏和导航栏文字、图标)
let kColor_black_1 = RGBA(102,102,102,1.0)

// 次级标题黑色(用于辅助文字信息，普通文字段落信息和引导词)
let kColor_black_2 = RGBA(153,153,153,1.0)

// 弱黑色(用于默认文字信息)
let kColor_black_3 = RGBA(204,204,204,1.0)

// 主色调

// MARK:- 字体



// MARK:- 图片
// 默认头像
let kAvatarImgPlaceH = UIImage(named: "")

